<template>
	<view class="addSession">
		<uni-section title="定时鱼票" type="line" @click="goto('/pages/fishTickets/addSession/addSession',0)">
			<view class="text">
				计次收费，有固定开场时间，钓友同时进场
			</view>
			<uni-icons type="right" size="20"></uni-icons>
		</uni-section>
		<uni-section title="随到随钓鱼票/循环鱼票" type="line" @click="goto('/pages/fishTickets/addSession/addSession',1)">
			<view class="text">
				计时收费，在营业期间内，钓友随到随钓，开场可摇号
			</view>
			<uni-icons type="right" size="20"></uni-icons>
		</uni-section>
		<uni-section title="快速发布" type="line" @click="goto('/pages/fishTickets/addSession/chooseSessionType')">
			<view class="text">
				修改历史场次中的信息可快速发布
			</view>
			<uni-icons type="right" size="20"></uni-icons>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: null
			}
		},
		onLoad() {

		},
		methods: {
			goto(url,type){
				this.type = type
				uni.navigateTo({url:`${url}?type=${this.type}`})
			}
		}
	}
</script>

<style scoped lang="scss">
	.addSession {
		background-color: #F3F4F6;
		padding: 40rpx;
		height: calc(100vh - 44px - env(safe-area-inset-top) - 80rpx);
		.uni-section{
			margin-bottom: 40rpx;
			padding: 0 20rpx 20rpx;
			:deep(.uni-section-content){
				position: relative;
				.text{
					font-size: 24rpx;
					color: rgba(0, 0, 0, 0.8);
				}
				.uni-icons{
					position: absolute;
					right: 0rpx;
					top: -34rpx;
				}
			}
		}
	}
</style>
